package com.coocaa.ops.admin.v1.globalparams.service;

import com.coocaa.ops.common.core.biz.auth.entity.SysUserEntity;
import com.coocaa.ops.admin.v1.globalparams.model.GlobalParamsModel;
import com.coocaa.ops.admin.v1.globalparams.model.GlobalParamsPageListModel;
import com.coocaa.ops.common.core.base.model.PageResultModel;
import com.coocaa.ops.common.core.base.model.R;

import java.util.List;

/**
 * @author : hql
 * @date : 2020/7/14 15:03
 * @description
 */
public interface IGlobalParamsService {
    /**
     * 保存
     * @param model
     * @param userId
     */
    void save(GlobalParamsModel model, Integer userId);

    /**
     * 查询列表
     * @param model
     * @return
     */
    PageResultModel<GlobalParamsPageListModel> getPageList(GlobalParamsModel model);

    /**
     * 批量删除
     * @param ids
     * @param currentUser
     * @return
     */
    R deleteBatch(List<Integer> ids, SysUserEntity currentUser);
}
